package action.album;

import service.AlbumService;
import bean.Album;

import com.opensymphony.xwork2.ActionSupport;

public class GetAlbumAction extends ActionSupport {
	private Album album;
	private AlbumService albumService;
	
	@Override
	public String execute() throws Exception {
		album=albumService.getAlbumById(album.getId());
		if(album!=null)
			return SUCCESS;
		return INPUT;
	}

	public Album getAlbum() {
		return album;
	}

	public void setAlbum(Album album) {
		this.album = album;
	}

	public AlbumService getAlbumService() {
		return albumService;
	}

	public void setAlbumService(AlbumService albumService) {
		this.albumService = albumService;
	}
	
	
}
